<#assign contextPath=request.getContextPath()>
<#escape x as x?html>
<div class="navbar-container navbar-fixed-top" id="navbar-container">
    <div class="navbar-header pull-left">
        <a href="/" class="navbar-brand">
            <img class="xk-logo" src="${contextPath}/images/logo/logo-white.png"/>
            <small>
                木梵管理平台
            </small>
        </a>
    </div>

    <div class="navbar-buttons navbar-header pull-right" role="navigation">
        <ul class="nav ace-nav">

            <li class="light-blue dropdown-modal">
                <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                <#if currentUser.userAvatar=="">
                    <img class="nav-user-photo" src="${contextPath}/images/avatars/avatar.png" alt="${currentUser.userName!}" width="40" height="40"/>
					<#else>
                    <img class="nav-user-photo" src="${contextPath}/web/fileStorageInfo/download?uniqueNo=${currentUser.userAvatar!}" alt="${currentUser.userName!}" width="40" height="40"/>
                </#if>

                   ${currentUser.userName!}
                    <i class="ace-icon fa fa-caret-down"></i>
                </a>

                <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                    <li>
                        <a href="#">
                            <i class="ace-icon fa fa-cog grey"></i>
                            个人设置
                        </a>
                    </li>
                    <li class="divider"></li>
                    <li>
                        <a href="${contextPath}/logout">
                            <i class="ace-icon fa fa-power-off grey"></i>
                            退出系统
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>
</#escape>